package cn.li.org.mapper;

import cn.li.basic.mapper.BaseMapper;
import cn.li.basic.query.BaseQuery;
import cn.li.org.domain.Department;
import cn.li.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper{
    //新增数据
    void save(Department department);
    //修改数据
    void update(Department department);
    //删除数据
    void delete(Long id);
    //查询单个记录
    Department loadById(Long id);
    //查询全部数据
    List<Department> loadAll();
    //查询总条数
    Long queryCount(DepartmentQuery query);
    //查询当前分页的数据
    List<Department> queryData(DepartmentQuery query);
    //批量删除
    void batch(List<Long> ids);

}
